package cn.huihui.miniprogram.stuman.database.mapper;

import cn.huihui.miniprogram.stuman.database.model.Score;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScoreMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Score record);

    Score selectByPrimaryKey(Integer id);

    List<Score> selectAll();

    int updateByPrimaryKey(Score record);

    Score selectByStudentIdAndCourse(@Param("studentId") String studentId, @Param("course") String course);
}